Skip to content

[build] Remove 15 unused internal build tasks#11369

Open
jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers/delete-unused-build-tasks
Open

[build] Remove 15 unused internal build tasks#11369
jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers/delete-unused-build-tasks

Conversation

@jonathanpeppers
Copy link
Copy Markdown
Member

Remove dead-code MSBuild tasks from xa-prep-tasks and BootstrapTasks
that are no longer referenced anywhere in the build system.

xa-prep-tasks (12 removed):

  • AcceptAndroidSdkLicenses, CheckoutExternalGitDependency,
    CreateFilePaths, GitCommitTime, GitDiff, HashFileContents,
    NDKInfo, ParseExternalGitDependencies, PrepareInstall,
    RunParallelTargets, SetEnvironmentVariable, SystemUnzip

BootstrapTasks (3 removed):

  • CreateFrameworkList, GenerateMonoDroidIncludes, GenerateProfile

Also removed stale <UsingTask> declarations for GitCommitTime
(XAVersionInfo.targets) and GenerateProfile
(Xamarin.Android.Build.Tasks.targets).

Remove dead-code MSBuild tasks from xa-prep-tasks and BootstrapTasks
that are no longer referenced anywhere in the build system.

xa-prep-tasks (12 removed):
- AcceptAndroidSdkLicenses, CheckoutExternalGitDependency,
  CreateFilePaths, GitCommitTime, GitDiff, HashFileContents,
  NDKInfo, ParseExternalGitDependencies, PrepareInstall,
  RunParallelTargets, SetEnvironmentVariable, SystemUnzip

BootstrapTasks (3 removed):
- CreateFrameworkList, GenerateMonoDroidIncludes, GenerateProfile

Also removed stale <UsingTask> declarations for GitCommitTime
(XAVersionInfo.targets) and GenerateProfile
(Xamarin.Android.Build.Tasks.targets).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers jonathanpeppers marked this pull request as ready for review May 15, 2026 17:07
Copilot AI review requested due to automatic review settings May 15, 2026 17:07
@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label May 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes dead-code MSBuild task implementations from the internal build-task projects (xa-prep-tasks and Xamarin.Android.Tools.BootstrapTasks) and cleans up stale <UsingTask> declarations that referenced them.

Changes:

  • Removed 12 unused xa-prep-tasks task implementations and 3 unused BootstrapTasks implementations.
  • Removed stale <UsingTask> entries for GitCommitTime and GenerateProfile.
  • Updated an internal build comment in Xamarin.Android.Build.Tasks.csproj to reference a still-used task.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.targets Removes the stale <UsingTask> for Xamarin.Android.Tools.BootstrapTasks.GenerateProfile.
src/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.csproj Updates the comment to reference <GenerateSupportedPlatforms/> instead of <GenerateProfile/>.
build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks/GenerateProfile.cs Deletes unused BootstrapTasks task implementation.
build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks/GenerateMonoDroidIncludes.cs Deletes unused BootstrapTasks task implementation.
build-tools/Xamarin.Android.Tools.BootstrapTasks/Xamarin.Android.Tools.BootstrapTasks/CreateFrameworkList.cs Deletes unused BootstrapTasks task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/SystemUnzip.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/SetEnvironmentVariable.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/RunParallelTargets.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/PrepareInstall.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/ParseExternalGitDependencies.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/NDKInfo.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/HashFileContents.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/GitDiff.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/GitCommitTime.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/CreateFilePaths.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/CheckoutExternalGitDependency.cs Deletes unused prep task implementation.
build-tools/xa-prep-tasks/Xamarin.Android.BuildTools.PrepTasks/AcceptAndroidSdkLicenses.cs Deletes unused prep task implementation.
build-tools/scripts/XAVersionInfo.targets Removes stale <UsingTask> entry for Xamarin.Android.BuildTools.PrepTasks.GitCommitTime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants